﻿#ifndef UIMAIN_H
#define UIMAIN_H

#include <src/GUI/uicom/uiqosdialog.h>

#include <src/middle/structs/cloudmodels.h>

#include <QJsonValue>

namespace Ui
{
    class UiMain;
}

class UiTransfer;

/// @brief 主界面
///
class UiMain: public UiQosDialog
{
    Q_OBJECT

private:
    Ui::UiMain* ui;
    UiTransfer* m_transfer = nullptr;

public:
    explicit UiMain(QWidget* parent = nullptr);
    ~UiMain();

private slots:
    void onUnLogin();
    void showTransfer();
    void onBucketsSuccess(const QList<MyBucket>& buckets);
    void onObjectsSuccess(const QList<MyObject>& objects);
    void onError(int api, const QString& msg, const QJsonValue& req);
};

#endif // UIMAIN_H
